﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace Company.Hardware.Config
{
    public class HardwareConfig : ObservableObject
    {
        // 海康威视摄像头通讯参数
        private string dvrIPAddress = "192.168.0.1";
        public string DvrIPAddress { get => dvrIPAddress; set=>SetProperty(ref dvrIPAddress, value); }

        private int  dvrPortNumber =8000;
        public int DvrPortNumber { get => dvrPortNumber; set => SetProperty(ref dvrPortNumber, value); }

        private string dvrUserName = "admin";
        public string DvrUserName { get => dvrUserName; set => SetProperty(ref dvrUserName, value); }

        private string dvrPassword = "";
        public string DvrPassword { get => dvrPassword; set => SetProperty(ref dvrPassword, value); }

        // 仪表通讯参数
        private string portName = "COM1";
        public string PortName { get => portName; set=>SetProperty(ref portName, value); }

        private int baudRate = 9600;
        public int BaudRate { get => baudRate;set=>SetProperty(ref baudRate, value); }

        //ice_ipc摄像头通讯参数
        private string iceIPAddress = "192.168.101.201";
        public string IceIPAddress { get => iceIPAddress; set => SetProperty(ref iceIPAddress, value); }

        private int icePortNumber = 8000;
        public int IcePortNumber { get => icePortNumber; set => SetProperty(ref icePortNumber, value); }

        private string iceUserName = "admin";
        public string IceUserName { get => iceUserName; set => SetProperty(ref iceUserName, value); }

        private string icePassword = "";
        public string IcePassword { get => icePassword; set => SetProperty(ref icePassword, value); }
    }
}
